package com.xukktest.demo.config;

import net.oschina.j2cache.CacheChannel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class MyStartupRunner implements CommandLineRunner {
    @Autowired
    private CacheChannel cacheChannel;

    @Override
    public void run(String... args) throws Exception {
        cacheChannel.set("aa","bb","cc");
    }
}